package cn.iocoder.yudao.module.system.dal.mysql.chaoshun;

import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.chaoshun.ChaoshunXhDO;
import org.apache.ibatis.annotations.*;

/**
* @author 16651
* @description 针对表【chaoshun_xh】的数据库操作Mapper
* @createDate 2024-09-25 23:23:19
* @Entity generator.domain.ChaoshunXh
*/
@Mapper
public interface ChaoshunXhMapper extends BaseMapperX<ChaoshunXhDO> {

    @Select("select xh from chaoshun_xh where table_name=#{tableName}")
    public Integer getXh(@Param("tableName") String tableName);

    @Update("update chaoshun_xh set xh = #{xh} where table_name=#{tableName}")
    public Integer updateXh(@Param("xh") Integer xh, @Param("tableName") String tableName);

    @Insert("insert into chaoshun_xh (table_name, xh) values (#{tableName}, #{xh})")
    public Integer insertXh(@Param("xh") Integer xh, @Param("tableName") String tableName);

}




